import { LAYOUT } from '@/router/constants';
import type { RouteRecordItem } from 'vc/src/router';

import EnterprisePage from '@/views/modules/enterprise/index.vue';

export const LINK_ENTERPRISE = '/enterprise';
export const LINK_ENTERPRISE_OVERVIEW = LINK_ENTERPRISE + '/overview';

const Environmental: RouteRecordItem = {
  path: LINK_ENTERPRISE,
  component: LAYOUT,
  name: 'Enterprise',
  meta: {
    title: '',
    hideSide: true
  },
  children: [
    {
      path: LINK_ENTERPRISE_OVERVIEW + '/:id',
      name: 'EnterpriseOverview',
      meta: {
        title: '加载中...',
        hideSide: true,
        noAddName: true,
      },
      component: EnterprisePage
    }
  ]
};

export default Environmental;
